@extends('Admin.layout.layout')
@section('content')
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>编辑</h5>
                    </div>
                    <div class="ibox-content">
                        <form class="form-horizontal m-t" id="signupForm">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">序号：</label>
                                <div class="col-sm-5">
                                    <input id="" name="" value="" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">标题：</label>
                                <div class="col-sm-5">
                                    <input id="" name="" value="" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">顶级分类：</label>
                                <div class="col-sm-5">
                                    <select class="form-control valid" id="" name="">
                                        <option value="1">1</option>
                                        <option value="2">2</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">所属分类：</label>
                                <div class="col-sm-5">
                                    <select class="form-control valid" id="" name="">
                                        <option value="1">1</option>
                                        <option value="2">2</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">审核：</label>
                                <div class="col-sm-5">
                                    <div class="radio mrd10">
                                        <input type="radio" name="sh" id="radio3" value="0" class="" style="margin:2px 0 0 0;">
                                        <label for="radio3"> 否</label>
                                    </div>
                                    <div class="radio mrd10">
                                        <input type="radio" name="sh" id="radio4" value="1" checked="checked" class="" style="margin:2px 0 0 0;">
                                        <label for="radio4"> 是</label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">推荐：</label>
                                <div class="col-sm-5">
                                    <div class="radio mrd10">
                                        <input type="radio" name="tj" id="radio0" value="0" class="" style="margin:2px 0 0 0;">
                                        <label for="radio0"> 否</label>
                                    </div>
                                    <div class="radio mrd10">
                                        <input type="radio" name="tj" id="radio1" value="1" checked="checked" class="" style="margin:2px 0 0 0;">
                                        <label for="radio1"> 是</label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">排序：</label>
                                <div class="col-sm-1">
                                    <input id="" name="" value="" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">来源：</label>
                                <div class="col-sm-5">
                                    <input id="" name="" value="" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">作者：</label>
                                <div class="col-sm-5">
                                    <input id="" name="" value="" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">内容：</label>
                                <div class="col-sm-5">
                                    <script id="editor_id" name="product_detail"  style="min-height:300px;" type="text/plain">  </script>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <a href="/foradmin/list1" class="btn btn-default pull-left">返回</a>
                                <button type="submit" class="btn btn-primary" id="btn_submit">
                                    确定
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <script src="{!!asset('/laravel-u-editor/ueditor.config.js')!!}"></script>
    <script src="{!!asset('/laravel-u-editor/ueditor.all.min.js')!!}"></script>
    <script>
        $(document).ready(function () {
            var ue_detail = UE.getEditor('editor_id', { initialFrameWidth: null });
            ue_detail.ready(function() {
                ue_detail.execCommand('serverparam', '_token', '{{ csrf_token() }}'); // 设置 CSRF token.
            });
        });
    </script>
@endsection
